package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LedAdsMapper;
import com.ruoyi.system.domain.LedAds;
import com.ruoyi.system.service.ILedAdsService;
import com.ruoyi.common.core.text.Convert;

/**
 * LEDService业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-14
 */
@Service
public class LedAdsServiceImpl implements ILedAdsService 
{
    @Autowired
    private LedAdsMapper ledAdsMapper;

    /**
     * 查询LED
     * 
     * @param id LED主键
     * @return LED
     */
    @Override
    public LedAds selectLedAdsById(Long id)
    {
        return ledAdsMapper.selectLedAdsById(id);
    }

    /**
     * 查询LED列表
     * 
     * @param ledAds LED
     * @return LED
     */
    @Override
    public List<LedAds> selectLedAdsList(LedAds ledAds)
    {
        return ledAdsMapper.selectLedAdsList(ledAds);
    }

    /**
     * 新增LED
     * 
     * @param ledAds LED
     * @return 结果
     */
    @Override
    public int insertLedAds(LedAds ledAds)
    {
        return ledAdsMapper.insertLedAds(ledAds);
    }

    /**
     * 修改LED
     * 
     * @param ledAds LED
     * @return 结果
     */
    @Override
    public int updateLedAds(LedAds ledAds)
    {
        return ledAdsMapper.updateLedAds(ledAds);
    }

    /**
     * 批量删除LED
     * 
     * @param ids 需要删除的LED主键
     * @return 结果
     */
    @Override
    public int deleteLedAdsByIds(String ids)
    {
        return ledAdsMapper.deleteLedAdsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除LED信息
     * 
     * @param id LED主键
     * @return 结果
     */
    @Override
    public int deleteLedAdsById(Long id)
    {
        return ledAdsMapper.deleteLedAdsById(id);
    }
}
